var QcReportModel = function (report, detail) {
  BaseModel.call(this);
  var self = this;

  var fn = {
    initData: function (report, detail) {
      var fields = ['id', 'orderId', 'companyOrderId', 'factoryId', 'customerId', 'processId', 'processName', 'img', 'createUser', 'createTime',
        'type', 'status', 'remark'
      ];
      self.setDataFromObj(report, fields, '');

      var canApprovalNameList = report.canApprovalUserName;
      canApprovalNameList = _.filter(canApprovalNameList, function (name) {
        return !SysUtil.isEmpty(name);
      });
      self.canApprovalNameList = canApprovalNameList;

      self.content = detail.content;
      self.reportValue = detail.reportValues;
      self.result = detail.result;
    }
  };

  fn.initData(report, detail);
};
